package com.sdtbu.ylgh.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdtbu.ylgh.dao.DepartmentDao;
import com.sdtbu.ylgh.dao.DoctorsDao;
import com.sdtbu.ylgh.entity.DepartmentEntity;
import com.sdtbu.ylgh.entity.DoctorsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.sdtbu.ylgh.dao.GhRosterDao;
import com.sdtbu.ylgh.entity.GhRosterEntity;
import com.sdtbu.ylgh.service.GhRosterService;


@Service("ghRosterService")
public class GhRosterServiceImpl extends ServiceImpl<GhRosterDao, GhRosterEntity> implements GhRosterService {

    @Autowired
    GhRosterDao ghRosterDao;
    @Override
    public List<Map<String, Object>> toDay(Long time, String depId) {
        List<Map<String, Object>> mapList = ghRosterDao.toDayList(new Date(time), depId);

        return mapList;
    }
}